package com.zjw.spring.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * aspect hello world test 
 * @author zjw
 *
 */
@Order(1)
@Aspect//mark to an aspect
@Component//put the aspect to the container
public class MyAspect {

	@Before("execution(public int com.zjw.spring.aop.ICalculator.add(int,int))")
	public void before(){
		System.out.println("MyAspect.before() executed ...");
	}
}
